IF EXIST ..\install GOTO STEP2

MKDIR ..\install
MKDIR ..\install\lib
MKDIR ..\install\pythonFulguro
MKDIR ..\install\pythonFulguro\fulguro
MKDIR ..\install\include
MKDIR ..\install\bin
MKDIR ..\install\apps
MKDIR ..\install\apps\images
MKDIR ..\install\apps\images\gray
MKDIR ..\install\apps\images\bin
MKDIR ..\install\apps\images\color
MKDIR ..\install\apps\python
MKDIR ..\install\apps\python\example1
MKDIR ..\install\apps\python\example2
MKDIR ..\install\apps\python\example3
MKDIR ..\install\apps\python\example4
MKDIR ..\install\apps\python\example5
MKDIR ..\install\apps\python\example6
MKDIR ..\install\apps\python\example7
MKDIR ..\install\apps\python\example8
MKDIR ..\install\apps\python\example9
MKDIR ..\install\apps\python\multithread_auto

MKDIR ..\install\apps\c\example1
MKDIR ..\install\apps\c\example2
MKDIR ..\install\apps\c\example3
MKDIR ..\install\apps\c\example4
MKDIR ..\install\apps\c\example5
MKDIR ..\install\apps\c\example6
MKDIR ..\install\apps\c\multithread
MKDIR ..\install\apps\c\multithread_auto


:STEP2
copy install.nsi ..\install

copy src\arith\*.h ..\install\include
copy src\core\*.h ..\install\include
copy src\datatools\*.h ..\install\include
copy src\histogram\*.h ..\install\include
copy src\image\*.h ..\install\include
copy src\linear\*.h ..\install\include
copy src\matrix\*.h ..\install\include
copy src\measure\*.h ..\install\include
copy src\morpho\*.h ..\install\include
copy src\rtcapture\*.h ..\install\include
copy src\rtview\*.h ..\install\include

xcopy /Y /E ..\SDL-1.2.13\include\* ..\install\include
xcopy /Y /E ..\libpng-1.2.24\include\* ..\install\include
xcopy /Y /E ..\fftw3\*.h ..\install\include

:STEP3
copy libfulguro.a ..\install\lib
copy fulguro.dll ..\install\pythonFulguro\fulguro
copy C:\MinGW\bin\mingwm10.dll ..\install\pythonFulguro\fulguro
copy fulguro.dll ..\install\bin
copy C:\MinGW\bin\mingwm10.dll ..\install\bin

xcopy /Y /E ..\fftw3\*.* ..\install\lib
xcopy /Y /E ..\SDL-1.2.13\lib\*.* ..\install\lib
xcopy /Y /E ..\zlib-1.2.3\lib\*.* ..\install\lib
xcopy /Y /E ..\libpng-1.2.24\lib\*.* ..\install\lib

xcopy /Y /E ..\fftw3\*.dll ..\install\bin
xcopy /Y /E ..\SDL-1.2.13\bin\*.dll ..\install\bin
xcopy /Y /E ..\zlib-1.2.3\bin\*.dll ..\install\bin
xcopy /Y /E ..\libpng-1.2.24\bin\*.dll ..\install\bin

xcopy /Y /E ..\libpng-1.2.24\bin\*.dll ..\install\pythonFulguro\fulguro
xcopy /Y /E ..\SDL-1.2.13\bin\*.dll ..\install\pythonFulguro\fulguro
xcopy /Y /E ..\zlib-1.2.3\bin\*.dll ..\install\pythonFulguro\fulguro
xcopy /Y /E ..\fftw3\*.dll ..\install\pythonFulguro\fulguro

:STEP4
copy apps\images\gray\*.* ..\install\apps\images\gray
copy apps\images\bin\*.* ..\install\apps\images\bin
copy apps\images\color\*.* ..\install\apps\images\color

:STEP5
copy apps\python\example1\*.py ..\install\apps\python\example1
copy apps\python\example2\*.py ..\install\apps\python\example2
copy apps\python\example3\*.py ..\install\apps\python\example3
copy apps\python\example4\*.py ..\install\apps\python\example4
copy apps\python\example5\*.py ..\install\apps\python\example5
copy apps\python\example6\*.py ..\install\apps\python\example6
copy apps\python\example7\*.py ..\install\apps\python\example7
copy apps\python\example8\*.py ..\install\apps\python\example8
copy apps\python\example9\*.py ..\install\apps\python\example9
copy apps\python\multithread_auto\*.py ..\install\apps\python\multithread_auto

copy apps\c\example1\*.c ..\install\apps\c\example1
copy apps\c\example2\*.c ..\install\apps\c\example2
copy apps\c\example3\*.c ..\install\apps\c\example3
copy apps\c\example4\*.c ..\install\apps\c\example4
copy apps\c\example5\*.c ..\install\apps\c\example5
copy apps\c\example6\*.c ..\install\apps\c\example6
copy apps\c\multithread\*.c ..\install\apps\c\multithread
copy apps\c\multithread_auto\*.c ..\install\apps\c\multithread_auto


:STEP6
copy install.nsi ..\install
